package com.sy.service.message;

import com.sy.bean.message.GoodsCategory;
import com.sy.bean.message.query.Category;
import com.sy.common.crud.IService;

import java.util.List;

public interface GoodsCategoryService extends IService<GoodsCategory> {
    /**
     * 查询类别树
     * @return
     */
    List<GoodsCategory> tree();

    /**
     * 新增类别
     * @param category
     * @return
     */
    int saveCategory(Category category);
}
